﻿/*-----------------------------------------------
// File: SubTitlePanel.cs
// Description: 
// Author: Shaobing	492057342@qq.com
-----------------------------------------------*/
using UnityEngine;
using System.Collections;

public class SubTitlePanel : MonoBehaviour {
    public UILabel subTitleLabel;

    void Start() {
        Hide();
    }

    public void Show() {
        subTitleLabel.gameObject.SetActive(true);
    }

    public void Hide() {
        subTitleLabel.gameObject.SetActive(false);
        SetText("");
    }

    public void SetText(string text) {
        subTitleLabel.text = text;
    }

    private static SubTitlePanel instance = null;

    void Awake() {
        instance = this;
    }

    public static SubTitlePanel Instance {
        get { return instance; }
    }

}
